package com.borball.store.dao;

import org.apache.ibatis.session.SqlSession;

import com.borball.store.domain.User;
import com.borball.store.util.SessionFactory;

public class UserDAO extends AbstractDAO<User>{
	
	public void updatePassword(User user) {
		SqlSession session = SessionFactory.getInstance().getSqlSessionFactory().openSession();

		try {
			session.update(clazz.getName() + ".updatePassword", user);
		} finally {
			session.commit(true);
			session.close();
		}
	}
}
